luci-base: ui.js: modal dialog tweaks
authorJo-Philipp Wich <[email protected]>
Sun, 5 Feb 2023 18:41:20 +0000 (19:41 +0100)
committerJo-Philipp Wich <[email protected]>
Mon, 3 Apr 2023 11:47:26 +0000 (13:47 +0200)
commit250beb9cf3d39e9a3a0134c4cd1dd8ffd54dd457
tree9920cbe497b036ea9277dfed72810db4f30b8aa1
parent9e83043df5c65d244a06609aad36bb6627a30026
luci-base: ui.js: modal dialog tweaks

 - Automatically focus modal dialog frame
 - Close modal dialog on pressing escape key

Fixes: #4609, #6205
Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit c9939a83e72beb32dd1e11b07139714e2ae91623)
modules/luci-base/htdocs/luci-static/resources/ui.js